/**
 * Copyright(C): CETC-32
 * @Description: 数据管理文件数据库实体操作
 * @author: youqing
 * @version: 1.0
 * @date: 2020/9/11 10:55
 * 更改描述：
 */
package com.cetc32.dh.mybatis;

import com.cetc32.dh.entity.DataFile;
import tk.mybatis.mapper.common.Mapper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;

/**
 * @Title: DataFileMapper
 * @Description:
 * @author: youqing
 * @version: 1.0
 * @date: 2020/11/21 11:19
 */
@Repository
public interface DataFileMapper extends Mapper<DataFile> {

    public Integer countAll();

    public Integer insertOne(DataFile dataFile);

    public Integer updateById(DataFile dataFile);

    public  Integer deleteById(Long id);

    public DataFile queryById(Long id);

    public List<DataFile> queryByTime(Date time);

    public List<DataFile> queryByRegion(String region);

    public List<DataFile> queryAllByFileSecurity(String fileSecurity);

//    public List<DataFile> queryByFileStorageId(Long fileStorageId);

}